<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<form name="cpform" method="post" autocomplete="off" action="?<?php echo $server_url;?>&selall=yes" id="cpform">
<input type="hidden" name="formhash" id="formhash" value="<?php echo FORMHASH;?>" />
<input type="hidden" name="page" value="<?php echo $page;?>" />
<table class="tb tb2 nobdb">
  <tbody>
    <tr class="header">
       <th>&nbsp;&nbsp;</th>
        <th>&nbsp;&nbsp;</th>
       <th>天天快报的原始帖子</th>
       <th>论坛版块</th>
       <th>主题分类</th>
       <th>&nbsp;&nbsp;</th>
    </tr>
    
    <?php if(is_array($postRs)) foreach($postRs as $post) { ?>    
    <tr class="hover">
    
      <td><input type="checkbox" value="<?php echo $post['ID'];?>" name="idarray[]" /></td>	
      <td><a href="<?php echo $_G['siteurl'];?>forum.php?mod=viewthread&tid=<?php echo $post['tid'];?>" target="_blank">查看已经发布的帖子</a></td>
      <td><a href="<?php echo $post['fromurl'];?>" target="_blank"><?php echo $post['subject'];?></a></td>
      <td><?php echo getFidName($post['fid'])?></td>
      <td><?php echo getTypeidName($post['typeid'],$post['fid'])?></td>
      <td><a href="?<?php echo $server_url;?>&del=<?php echo $post['ID'];?>&page=<?php echo $page;?>&formhash=<?php echo FORMHASH;?>">删除</a></td>
      
    </tr>
    
    <?php } ?>
    
    <tr>
    	<td colspan="6">
        	
            <div style="margin:8px 0;">        
            <input name="chkall" id="chkall" type="checkbox" class="checkbox" onclick="checkAll('prefix', this.form, 'idarray', 'chkall')" /><label for="chkall">全选</label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="submit" value="全部删除" name="seldelete" class="btn" />            
       		</div>
            
        </td>
    </tr>
  </tbody>
</table>

<div class="pg" style="margin-top:16px;"> <a href="?<?php echo $prePage;?>&formhash=<?php echo FORMHASH;?>">上一页</a> &nbsp;&nbsp;<?php echo $page;?>&nbsp;&nbsp; <a href="?<?php echo $nextPage;?>&formhash=<?php echo FORMHASH;?>">下一页</a> </div>


</form>